package com.mc.read.dao.models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LabelauditExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LabelauditExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLabelauditidIsNull() {
            addCriterion("labelAuditId is null");
            return (Criteria) this;
        }

        public Criteria andLabelauditidIsNotNull() {
            addCriterion("labelAuditId is not null");
            return (Criteria) this;
        }

        public Criteria andLabelauditidEqualTo(Integer value) {
            addCriterion("labelAuditId =", value, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andLabelauditidNotEqualTo(Integer value) {
            addCriterion("labelAuditId <>", value, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andLabelauditidGreaterThan(Integer value) {
            addCriterion("labelAuditId >", value, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andLabelauditidGreaterThanOrEqualTo(Integer value) {
            addCriterion("labelAuditId >=", value, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andLabelauditidLessThan(Integer value) {
            addCriterion("labelAuditId <", value, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andLabelauditidLessThanOrEqualTo(Integer value) {
            addCriterion("labelAuditId <=", value, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andLabelauditidIn(List<Integer> values) {
            addCriterion("labelAuditId in", values, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andLabelauditidNotIn(List<Integer> values) {
            addCriterion("labelAuditId not in", values, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andLabelauditidBetween(Integer value1, Integer value2) {
            addCriterion("labelAuditId between", value1, value2, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andLabelauditidNotBetween(Integer value1, Integer value2) {
            addCriterion("labelAuditId not between", value1, value2, "labelauditid");
            return (Criteria) this;
        }

        public Criteria andBookidIsNull() {
            addCriterion("bookid is null");
            return (Criteria) this;
        }

        public Criteria andBookidIsNotNull() {
            addCriterion("bookid is not null");
            return (Criteria) this;
        }

        public Criteria andBookidEqualTo(Integer value) {
            addCriterion("bookid =", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidNotEqualTo(Integer value) {
            addCriterion("bookid <>", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidGreaterThan(Integer value) {
            addCriterion("bookid >", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidGreaterThanOrEqualTo(Integer value) {
            addCriterion("bookid >=", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidLessThan(Integer value) {
            addCriterion("bookid <", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidLessThanOrEqualTo(Integer value) {
            addCriterion("bookid <=", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidIn(List<Integer> values) {
            addCriterion("bookid in", values, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidNotIn(List<Integer> values) {
            addCriterion("bookid not in", values, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidBetween(Integer value1, Integer value2) {
            addCriterion("bookid between", value1, value2, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidNotBetween(Integer value1, Integer value2) {
            addCriterion("bookid not between", value1, value2, "bookid");
            return (Criteria) this;
        }

        public Criteria andLabelnameIsNull() {
            addCriterion("labelName is null");
            return (Criteria) this;
        }

        public Criteria andLabelnameIsNotNull() {
            addCriterion("labelName is not null");
            return (Criteria) this;
        }

        public Criteria andLabelnameEqualTo(String value) {
            addCriterion("labelName =", value, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameNotEqualTo(String value) {
            addCriterion("labelName <>", value, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameGreaterThan(String value) {
            addCriterion("labelName >", value, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameGreaterThanOrEqualTo(String value) {
            addCriterion("labelName >=", value, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameLessThan(String value) {
            addCriterion("labelName <", value, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameLessThanOrEqualTo(String value) {
            addCriterion("labelName <=", value, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameLike(String value) {
            addCriterion("labelName like", value, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameNotLike(String value) {
            addCriterion("labelName not like", value, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameIn(List<String> values) {
            addCriterion("labelName in", values, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameNotIn(List<String> values) {
            addCriterion("labelName not in", values, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameBetween(String value1, String value2) {
            addCriterion("labelName between", value1, value2, "labelname");
            return (Criteria) this;
        }

        public Criteria andLabelnameNotBetween(String value1, String value2) {
            addCriterion("labelName not between", value1, value2, "labelname");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andNopasstxtIsNull() {
            addCriterion("noPassTxt is null");
            return (Criteria) this;
        }

        public Criteria andNopasstxtIsNotNull() {
            addCriterion("noPassTxt is not null");
            return (Criteria) this;
        }

        public Criteria andNopasstxtEqualTo(String value) {
            addCriterion("noPassTxt =", value, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtNotEqualTo(String value) {
            addCriterion("noPassTxt <>", value, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtGreaterThan(String value) {
            addCriterion("noPassTxt >", value, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtGreaterThanOrEqualTo(String value) {
            addCriterion("noPassTxt >=", value, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtLessThan(String value) {
            addCriterion("noPassTxt <", value, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtLessThanOrEqualTo(String value) {
            addCriterion("noPassTxt <=", value, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtLike(String value) {
            addCriterion("noPassTxt like", value, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtNotLike(String value) {
            addCriterion("noPassTxt not like", value, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtIn(List<String> values) {
            addCriterion("noPassTxt in", values, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtNotIn(List<String> values) {
            addCriterion("noPassTxt not in", values, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtBetween(String value1, String value2) {
            addCriterion("noPassTxt between", value1, value2, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andNopasstxtNotBetween(String value1, String value2) {
            addCriterion("noPassTxt not between", value1, value2, "nopasstxt");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateIsNull() {
            addCriterion("auditDate is null");
            return (Criteria) this;
        }

        public Criteria andAuditdateIsNotNull() {
            addCriterion("auditDate is not null");
            return (Criteria) this;
        }

        public Criteria andAuditdateEqualTo(Date value) {
            addCriterion("auditDate =", value, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateNotEqualTo(Date value) {
            addCriterion("auditDate <>", value, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateGreaterThan(Date value) {
            addCriterion("auditDate >", value, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateGreaterThanOrEqualTo(Date value) {
            addCriterion("auditDate >=", value, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateLessThan(Date value) {
            addCriterion("auditDate <", value, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateLessThanOrEqualTo(Date value) {
            addCriterion("auditDate <=", value, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateIn(List<Date> values) {
            addCriterion("auditDate in", values, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateNotIn(List<Date> values) {
            addCriterion("auditDate not in", values, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateBetween(Date value1, Date value2) {
            addCriterion("auditDate between", value1, value2, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAuditdateNotBetween(Date value1, Date value2) {
            addCriterion("auditDate not between", value1, value2, "auditdate");
            return (Criteria) this;
        }

        public Criteria andAudituseridIsNull() {
            addCriterion("auditUserid is null");
            return (Criteria) this;
        }

        public Criteria andAudituseridIsNotNull() {
            addCriterion("auditUserid is not null");
            return (Criteria) this;
        }

        public Criteria andAudituseridEqualTo(Integer value) {
            addCriterion("auditUserid =", value, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAudituseridNotEqualTo(Integer value) {
            addCriterion("auditUserid <>", value, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAudituseridGreaterThan(Integer value) {
            addCriterion("auditUserid >", value, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAudituseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("auditUserid >=", value, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAudituseridLessThan(Integer value) {
            addCriterion("auditUserid <", value, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAudituseridLessThanOrEqualTo(Integer value) {
            addCriterion("auditUserid <=", value, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAudituseridIn(List<Integer> values) {
            addCriterion("auditUserid in", values, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAudituseridNotIn(List<Integer> values) {
            addCriterion("auditUserid not in", values, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAudituseridBetween(Integer value1, Integer value2) {
            addCriterion("auditUserid between", value1, value2, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAudituseridNotBetween(Integer value1, Integer value2) {
            addCriterion("auditUserid not between", value1, value2, "audituserid");
            return (Criteria) this;
        }

        public Criteria andAuditusernameIsNull() {
            addCriterion("auditUsername is null");
            return (Criteria) this;
        }

        public Criteria andAuditusernameIsNotNull() {
            addCriterion("auditUsername is not null");
            return (Criteria) this;
        }

        public Criteria andAuditusernameEqualTo(String value) {
            addCriterion("auditUsername =", value, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameNotEqualTo(String value) {
            addCriterion("auditUsername <>", value, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameGreaterThan(String value) {
            addCriterion("auditUsername >", value, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameGreaterThanOrEqualTo(String value) {
            addCriterion("auditUsername >=", value, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameLessThan(String value) {
            addCriterion("auditUsername <", value, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameLessThanOrEqualTo(String value) {
            addCriterion("auditUsername <=", value, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameLike(String value) {
            addCriterion("auditUsername like", value, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameNotLike(String value) {
            addCriterion("auditUsername not like", value, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameIn(List<String> values) {
            addCriterion("auditUsername in", values, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameNotIn(List<String> values) {
            addCriterion("auditUsername not in", values, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameBetween(String value1, String value2) {
            addCriterion("auditUsername between", value1, value2, "auditusername");
            return (Criteria) this;
        }

        public Criteria andAuditusernameNotBetween(String value1, String value2) {
            addCriterion("auditUsername not between", value1, value2, "auditusername");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}